import { RouteRecordRaw } from 'vue-router';
import * as mdi from '@quasar/extras/mdi-v6';

const communityRoutes: RouteRecordRaw[] = [
  {
    path: '/community',
    component: () => import('src/layouts/MainLayout.vue'),
    meta: { title: '房产资源', icon: mdi.mdiFamilyTree },
    children: [
      {
        path: 'community',
        name: 'Community',
        component: () => import('src/pages/community/community/index.vue'),
        meta: { title: '社区档案', icon: mdi.mdiCity },
      },
      {
        path: 'area',
        name: 'TArea',
        component: () => import('src/pages/community/area/index.vue'),
        meta: { title: '小区档案', icon: mdi.mdiHomeCity },
      },
      {
        path: 'building',
        name: 'Building',
        component: () => import('src/pages/community/building/index.vue'),
        meta: { title: '小区楼宇', icon: mdi.mdiOfficeBuilding },
      },
      {
        path: 'room',
        name: 'Room',
        component: () => import('src/pages/community/room/index.vue'),
        meta: { title: '房产资源', icon: mdi.mdiHumanQueue },
      },
    ],
  },
];

export default communityRoutes;
